<%--
  Created by IntelliJ IDEA.
  User: wangchao
  Date: 2007-7-22
  Time: 10:12:50
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/common/taglib.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk">
    <link href="http://images.5d6d.com/orig/admincp/admincp.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="http://images.5d6d.com/orig/javascript/common.js"></script>
    <script src="http://images.5d6d.com/orig/javascript/iframe.js" type="text/javascript"></script>
    <script language="JavaScript">
        function checkalloption(form, value) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.value == value && e.type == 'radio' && e.disabled != true) {
                    e.checked = true;
                }
            }
        }

        function checkallvalue(form, value, checkall) {
            var checkall = checkall ? checkall : 'chkall';
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.type == 'checkbox' && e.value == value) {
                    e.checked = form.elements[checkall].checked;
                }
            }
        }

        function zoomtextarea(objname, zoom) {
            zoomsize = zoom ? 10 : -10;
            obj = $(objname);
            if (obj.rows + zoomsize > 0 && obj.cols + zoomsize * 3 > 0) {
                obj.rows += zoomsize;
                obj.cols += zoomsize * 3;
            }
        }

        function redirect(url) {
            window.location.replace(url);
        }

        var collapsed = getcookie('CM2_collapse');
        function collapse_change(menucount) {
            if ($('menu_' + menucount).style.display == 'none') {
                $('menu_' + menucount).style.display = '';
                collapsed = collapsed.replace('[' + menucount + ']', '');
                $('menuimg_' + menucount).src = 'http://images.5d6d.com/orig/admincp/menu_reduce.gif';
            } else {
                $('menu_' + menucount).style.display = 'none';
                collapsed += '[' + menucount + ']';
                $('menuimg_' + menucount).src = 'http://images.5d6d.com/orig/admincp/menu_add.gif';
            }
            setcookie('CM2_collapse', collapsed, 2592000);
        }
    </script>
</head>

<body leftmargin="10" topmargin="10">
<table width="100%" border="0" cellpadding="2" cellspacing="6">
    <tr>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
                <tr>
                    <td><a href="#"
                           onClick="parent.menu.location='admincp.php?action=menu'; parent.main.location='admincp.php?action=home';return false;">系统设置首页</a>&nbsp;&raquo;&nbsp;编辑用户
                    </td>
                </tr>
            </table>
            <br/>

            <s:form method="post" action="${ctx}/admin/editUsers.do"><a name="013fea9c3ef986c3"></a>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
                    <tr class="header">
                        <td colspan="2">编辑用户 - cjp472<a href="###" onclick="collapse_change('013fea9c3ef986c3')"><img
                                id="menuimg_013fea9c3ef986c3" src="http://images.5d6d.com/orig/admincp/menu_reduce.gif"
                                border="0" style="float: right; margin-top: -12px; margin-right: 8px;"/></a>
                        </td>
                    </tr>
                    <tbody id="menu_013fea9c3ef986c3" style="display: yes">
                        <tr>
                            <td width="60%" class="altbg1"><b>用户名:</b><br><span class="smalltxt">如不是特别需要，请不要修改用户名</span>
                            </td>
                            <td class="altbg2"><s:text size="30" name="user.username" value="${actionBean.user.username}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>昵称:</b></td>
                            <td class="altbg2"><s:text size="30" name="user.nickname" value="${actionBean.user.nickname}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>性别:</b></td>
                            <td class="altbg2"><s:radio value="1" name="user.sex" checked="${actionBean.user.sex}"></s:radio> 男
                                <s:radio value="2" name="user.sex" checked="${actionBean.user.sex}"></s:radio> 女
                                <s:radio value="0" name="user.sex" checked="${actionBean.user.sex}"></s:radio>
                                保密
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>Email:</b></td>
                            <td class="altbg2"><s:text name="user.email" class="reginput" id="email" size="40" value="${actionBean.user.email}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>发帖数:</b></td>
                            <td class="altbg2"><s:text size="30" name="user.totalTopic" value="${actionBean.user.totalTopic}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>精华帖数:</b></td>
                            <td class="altbg2"><s:text size="30" name="user.primes" value="${actionBean.user.primes}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>注册时间:</b></td>
                            <td class="altbg2"><s:text size="30" name="user.registerTime"
                                                      value="${actionBean.user.registerTime}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>最后访问时间:</b></td>
                            <td class="altbg2"><s:text size="30" name="user.lastLoginTime"
                                                      value="${actionBean.user.lastLoginTime}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>最后访问 IP:</b></td>
                            <td class="altbg2"><s:text size="30" name="user.lastLoginIp" value="${actionBean.user.lastLoginIp}"/>
                            </td>
                        </tr>
                        <s:hidden name="user.id" value="${actionBean.user.id}"/>
                </table>
                <br><a name="e60d25544dd3009a"></a>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
                    <tr class="header">
                        <td colspan="2">用户资料<a href="###" onclick="collapse_change('e60d25544dd3009a')"><img
                                id="menuimg_e60d25544dd3009a" src="http://images.5d6d.com/orig/admincp/menu_reduce.gif"
                                border="0" style="float: right; margin-top: -12px; margin-right: 8px;"/></a>
                        </td>
                    </tr>
                    <tbody id="menu_e60d25544dd3009a" style="display: yes">
                        <tr>
                            <td width="60%" class="altbg1"><b>主页:</b></td>
                            <td class="altbg2"><s:text size="30" name="userProfile.website" value="${actionBean.userProfile.website}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>QQ:</b></td>
                            <td class="altbg2"><s:text size="30" name="userProfile.imQq" value="${actionBean.userProfile.imQq}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>其它IM帐号:</b></td>
                            <td class="altbg2"><s:text size="30" name="userProfile.imOther" value="${actionBean.userProfile.imOther}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>MSN:</b></td>
                            <td class="altbg2"><s:text size="30" name="userProfile.imMsn" value="${actionBean.userProfile.imMsn}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>来自:</b></td>
                            <td class="altbg2"><s:text size="30" name="userProfile.address" value="${actionBean.userProfile.address}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>生日:</b></td>
                            <td class="altbg2"><s:text size="30" name="userProfile.birthDay" value="${actionBean.userProfile.birthDay}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>头像:</b></td>
                            <td class="altbg2"><s:text size="30" name="user.photoUrl" value="${actionBean.user.photoUrl}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1" valign="top"><b>自我介绍:</b></td>
                            <td class="altbg2"><img src="http://images.5d6d.com/orig/admincp/zoomin.gif"
                                                    onmouseover="this.style.cursor='pointer'"
                                                    onclick="zoomtextarea('bionew', 1)"> <img
                                    src="http://images.5d6d.com/orig/admincp/zoomout.gif"
                                    onmouseover="this.style.cursor='pointer'"
                                    onclick="zoomtextarea('bionew', 0)"><br>
                            <s:textarea rows="5" name="userProfile.introduce" id="bionew" cols="30">${actionBean.userProfile.introduce}</s:textarea></td>
                        </tr>
                    <s:hidden name="userProfile.id" value="${actionBean.userProfile.id}"/>
                </table>
                <br><a name="b4533eaa3e8f7650"></a>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
                    <tr class="header">
                        <td colspan="2">论坛选项<a href="###" onclick="collapse_change('b4533eaa3e8f7650')"><img
                                id="menuimg_b4533eaa3e8f7650" src="http://images.5d6d.com/orig/admincp/menu_reduce.gif"
                                border="0" style="float: right; margin-top: -12px; margin-right: 8px;"/></a>
                        </td>
                    </tr>
                    <tbody id="menu_b4533eaa3e8f7650" style="display: yes">
                        <tr>
                            <td width="60%" class="altbg1"><b>界面风格:</b></td>
                            <td class="altbg2"><select name="styleidnew">
                                <option value="">- 使用默认 -</option>
                                <option value="1">默认风格</option>
                                <option value="2">官方绿色</option>
                                <option value="3">红色情人</option>
                                <option value="4">香水花园</option>
                            </select></td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>每页显示主题数:</b></td>
                            <td class="altbg2"><input type="text" size="30" name="tppnew" value="0">
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>每页显示帖数:</b></td>
                            <td class="altbg2"><input type="text" size="30" name="pppnew" value="0">
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>自定义头衔:</b></td>
                            <td class="altbg2"><input type="text" size="30" name="cstatusnew" value="">
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>时间格式:</b></td>
                            <td class="altbg2"><input class="radio" type="radio" name="timeformatnew" value="0" checked>
                                默认 &nbsp; <input class="radio" type="radio" name="timeformatnew" value="1"> 12 小时 &nbsp;
                                <input class="radio" type="radio" name="timeformatnew" value="2"> 24 小时
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>日期格式:</b><br><span
                                    class="smalltxt">留空即为默认格式，和论坛设置保持一致</span></td>
                            <td class="altbg2"><input type="text" size="30" name="dateformatnew" value="">
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>时差设定:</b><br><span class="smalltxt">用户本地时间与 GMT 标准的时间差，设置 9999 即为默认时差，和论坛设置保持一致</span>
                            </td>
                            <td class="altbg2"><input type="text" size="30" name="timeoffsetnew" value="9999">
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>短消息提示音:</b></td>
                            <td class="altbg2"><input class="radio" type="radio" value="0" name="pmsoundnew" checked>无
                                &nbsp; <input class="radio" type="radio" value="1" name="pmsoundnew"><a
                                    href="http://images.5d6d.com/orig/sound/pm_1.wav">#1</a> &nbsp; <input class="radio"
                                                                                                           type="radio"
                                                                                                           value="2"
                                                                                                           name="pmsoundnew"><a
                                    href="http://images.5d6d.com/orig/sound/pm_2.wav">#2</a> &nbsp; <input class="radio"
                                                                                                           type="radio"
                                                                                                           value="3"
                                                                                                           name="pmsoundnew"><a
                                    href="http://images.5d6d.com/orig/sound/pm_3.wav">#3</a></td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>隐身登录:</b></td>
                            <td class="altbg2"><input class="radio" class="radio" type="radio" name="invisiblenew"
                                                      value="1"> 是 &nbsp; &nbsp;
                                <input class="radio" class="radio" type="radio" name="invisiblenew" value="0" checked> 否
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>Email 地址可见:</b></td>
                            <td class="altbg2"><input class="radio" class="radio" type="radio" name="showemailnew"
                                                      value="1" checked> 是 &nbsp; &nbsp;
                                <input class="radio" class="radio" type="radio" name="showemailnew" value="0"> 否
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1"><b>同意接收论坛通知 (Email 或短消息):</b></td>
                            <td class="altbg2"><input class="radio" class="radio" type="radio" name="newsletternew"
                                                      value="1" checked> 是 &nbsp; &nbsp;
                                <input class="radio" class="radio" type="radio" name="newsletternew" value="0"> 否
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="altbg1" valign="top"><b>忽略短消息:</b></td>
                            <td class="altbg2"><img src="http://images.5d6d.com/orig/admincp/zoomin.gif"
                                                    onmouseover="this.style.cursor='pointer'"
                                                    onclick="zoomtextarea('ignorepmnew', 1)"> <img
                                    src="http://images.5d6d.com/orig/admincp/zoomout.gif"
                                    onmouseover="this.style.cursor='pointer'"
                                    onclick="zoomtextarea('ignorepmnew', 0)"><br><textarea rows="5" name="ignorepmnew"
                                                                                           id="ignorepmnew"
                                                                                           cols="30"></textarea></td>
                        </tr>
                    </tbody>
                </table>
                <br><br>
                <center><input class="button" type="submit" name="detaiUserData" value="提 交"></center>
            </s:form>
        </td>
    </tr>
</table>
<br><br>
</body>
</html>
